package com.opensourcebolivia.navidar;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.opensourcebolivia.navidar.service.EncargadoDAO;

public class ServletEliminarEncargado extends HttpServlet {
	private static final long serialVersionUID = 1L;

	public void doGet(HttpServletRequest req, HttpServletResponse resp)
	throws IOException {
		String id = req.getParameter("id");
		EncargadoDAO.INSTANCE.remove(Long.parseLong(id));
		resp.sendRedirect("/EncargadoApplication.jsp");
	}
}
